package com.example.annotation

import android.app.Activity

object JettButterknife {
    fun bind(activity: Activity) {
        val name = activity.javaClass.name + "_ViewBinding"
        try {
            val aClass = Class.forName(name)
            val iBinder = aClass.newInstance() as IBinder<Activity>
            iBinder.bind(activity)
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }
}